package com.gzs.learn.payment.model.unionpay;

import java.io.Serializable;

/**
 * 
 * @author guanzhisong
 * @date 2021-08-24
 */
public class UnionpayConstant implements Serializable {
    private static final long serialVersionUID = 1L;

    /// ************************************************************
    /// *****************************返回码常量**************************
    /// ************************************************************
    public static final String SUCCESS_CODE = "00";

    /// ************************************************************
    /// *****************************参数常量**************************
    /// ************************************************************

    // 版本
    public static final String VERSION = "5.0.0";

    // 编码
    public static final String ENCODING_UTF8 = "UTF-8";

    // 交易类型
    // 00 查询交易
    // 01：消费
    // 02：预授权
    // 03：预授权完成
    // 04：退货
    // 05: 圈存
    // 11：代收
    // 12：代付
    // 13：账单支付
    // 14：转账（保留）
    // 21：批量交易
    // 22：批量查询
    // 31：消费撤销
    // 32：预授权撤销
    // 33：预授权完成撤销
    // 71：余额查询
    // 72：实名认证-建立绑定关系
    // 73：账单查询
    // 74：解除绑定关系
    // 75：查询绑定关系
    // 77：发送短信验证码交易
    // 78：开通查询交易
    // 79：开通交易
    // 94：IC 卡脚本通知
    public static final String TXNTYPE_CHAXUN = "00";
    public static final String TXNTYPE_XIAOFEI = "01";
    public static final String TXNTYPE_YUSHOUQUAN = "02";
    public static final String TXNTYPE_YUSHOUQUAN_FINISH = "03";
    public static final String TXNTYPE_TUIHUO = "04";
    public static final String TXNTYPE_QUANCUN = "05";
    public static final String TXNTYPE_DAISHOU = "11";
    public static final String TXNTYPE_DAIFU = "12";
    public static final String TXNTYPE_ZHANGDAN = "13";
    public static final String TXNTYPE_ZHUANZHANG = "14";
    public static final String TXNTYPE_PILIANG_ZHIFU = "21";
    public static final String TXNTYPE_PILIANG_CHAXUN = "22";
    public static final String TXNTYPE_XIAOFEI_CHEXIAO = "31";
    public static final String TXNTYPE_YUSHOUQUAN_CHEXIAO = "32";
    public static final String TXNTYPE_YUSHOUQUAN_FINISH_CHEXIAO = "33";
    public static final String TXNTYPE_YUE_CHAXUN = "71";
    public static final String TXNTYPE_SHIMINGRENZHENG = "72";
    public static final String TXNTYPE_ZHANGDAN_CHAXUN = "73";
    public static final String TXNTYPE_JIECHUBANGDING = "74";
    public static final String TXNTYPE_CHAXUNBANGDING = "75";
    public static final String TXNTYPE_SENDSMS = "77";
    public static final String TXNTYPE_KAITONG_CHAXUN = "78";
    public static final String TXNTYPE_KAITONG_JIAOYI = "79";
    public static final String TXNTYPE_ICKA = "94";

    // 产品类型
    // 000101 基金业务之股票基金
    // 000102 基金业务之货币基金
    // 000201 B2C 网关支付
    // 000301 认证支付 2.0
    // 000302 评级支付
    // 000401 代付
    // 000501 代收
    // 000601 账单支付
    // 000801 跨行收单
    // 000901 绑定支付
    // 001001 订购
    // 000202 B2B
    public static final String BIZTYPE_JIJIN_GUPIAO = "000101";
    public static final String BIZTYPE_JIJIN_HUOBI = "000102";
    public static final String BIZTYPE_WANGGUANG_ZHIFU = "000201";
    public static final String BIZTYPE_RENZHENG_ZHIFU = "000301";
    public static final String BIZTYPE_PINGJI_ZHIFU = "000302";
    public static final String BIZTYPE_DAIFU = "000401";
    public static final String BIZTYPE_DAISHOU = "000501";
    public static final String BIZTYPE_ZHANGDAN_ZHIFU = "000601";
    public static final String BIZTYPE_KUAHANG_SHOUDAN = "000801";
    public static final String BIZTYPE_BANGDING_ZHIFU = "000901";
    public static final String BIZTYPE_DINGGOU = "001001";
    public static final String BIZTYPE_B2B = "000202";

    // 接入类型
    // 0：商户直连接入
    // 1：收单机构接入
    // 2：平台商户接入
    public static final String ACESSTYPE_SHANGHU = "00";
    public static final String ACESSTYPE_SHOUDAN = "01";
    public static final String ACESSTYPE_PINGTAI = "02";

    // 支付方式
    // 0001：认证支付
    // 0002：快捷支付
    // 0004：储值卡支付
    // 0005：IC 卡支付
    // 0201：网银支付
    // 1001：牡丹畅通卡支付
    // 1002：中铁银通卡支付
    // 0401：信用卡支付——暂定
    // 0402：小额临时支付
    // 0403：认证支付 2.0
    // 0404：互联网订单手机支付
    // 9000：其他无卡支付(如手机客户端支付)
    public static final String PAYTYPE_RENZHENG = "0001";
    public static final String PAYTYPE_CHUZHIKA = "0004";
    public static final String PAYTYPE_ICKA = "0005";
    public static final String PAYTYPE_WANGYIN = "0201";
    public static final String PAYTYPE_MUDAN = "1001";
    public static final String PAYTYPE_ZHONGTIE = "1002";
    public static final String PAYTYPE_XINYONGKA = "0401";
    public static final String PAYTYPE_XIAOE = "0402";
    public static final String PAYTYPE_RENZHENG_V2 = "0403";
    public static final String PAYTYPE_SHOUJI = "0404";
    public static final String PAYTYPE_OTHER = "9000";


    // 交易币种
    public static final String CURRENCY_CODE_RMB = "156";

    // 账号类型
    // 01：银行卡
    // 02：存折
    // 03：IC 卡
    // 04：对公账户
    public static final String ACCTYPE_YINHANGKA = "01";
    public static final String ACCTYPE_CUNZHE = "02";
    public static final String ACCTYPE_ICKA = "03";
    public static final String ACCTYPE_DUIGONGZHANGHAO = "01";

    // 支付卡类型00：未知
    // 01：借记账户
    // 02：贷记账户
    // 03：准贷记账户
    // 04：借贷合一账户
    // 05：预付费账户
    // 06：半开放预付费账户
    public static final String PAYCARDTYPE_UNKNOWN = "00";
    public static final String PAYCARDTYPE_JIEJI = "01";
    public static final String PAYCARDTYPE_DAIJI = "02";
    public static final String PAYCARDTYPE_ZHUNDAIJI = "03";
    public static final String PAYCARDTYPE_JIEDAIHEYI = "04";
    public static final String PAYCARDTYPE_YUFUFEI = "05";
    public static final String PAYCARDTYPE_BANKAIFANG = "06";

    // 银联异步通知回调处理结果
    public static final String NOTIFY_SUCCESS = "200";
    public static final String NOTIFY_FAIL = "500";
}
